package com.aizhixin.lab.project.course.entity;

import lombok.Getter;
import lombok.Setter;
import org.springframework.cache.annotation.Cacheable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;


@Entity(name="c_exercises_stu_statistics")
@Cacheable
public class ExercisesStuStatistics {

	@Id
	@Column(name = "id")
	@Getter
	@Setter
	protected String id;

	/**
	 * 发布任务后的题目ID
	 */
	@Column(name = "exercises_question_id")
	@Getter @Setter
	private String exercisesQuestionId;

	/**
	 * 学生ID
	 */
	@Column(name = "stu_id")
	@Getter @Setter
	private String stuId;
	/**
	 * 执行时间
	 */
	@Column(name = "execute_time")
	@Getter @Setter
	private String executeTime;

    /**
     * 占用空间
	 */
	@Column(name = "occupy_space")
	@Getter @Setter
	private Integer occupySpace;
	/**
	 * 违规次数
	 */
	@Column(name = "violation_num")
	@Getter @Setter
	private Integer violationNum;
	
	/**
	 * 代码运行结果
	 */
	@Column(name = "run_result")
	@Getter @Setter
	private String runResult;

	/**
	 * 代码建议
	 */
	@Column(name = "code_advise")
	@Getter @Setter
	private String codeAdvise;

	/**
	 * 分数
	 */
	@Column(name = "score")
	@Getter @Setter
	private Integer score;
}
